package com.szh.zh.config;

import com.szh.zh.fallback.AccountClientFallbackFactory;
import com.szh.zh.fallback.StorageClientFallbackFactory;
import org.springframework.context.annotation.Bean;

public class DefaultFeignConfiguration {


    @Bean
    public AccountClientFallbackFactory myFeignFallbackFactory(){
        return new AccountClientFallbackFactory();
    }

    @Bean
    public StorageClientFallbackFactory storageClientFallbackFactory(){
        return new  StorageClientFallbackFactory();
    }
}
